<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <a href="#/home">首页</a>
        <a href="#/yemian1">页面一</a>
        <a href="#/yemian2">页面二</a>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        window.addEventListener("hashchange",function(){
            console.log(location.hash);
        },false);
        let vm = new Vue({
            el : "#app",
        });
    </script>
</body>
</html>